package com.day22.ex06;

public class PrintableDemo {
    public static void main(String[] args) {
        usePrintable(s-> System.out.println(s));
        usePrintable (System.out::println);
    }
    private static void usePrintable(Printable p){
        p.printString("爱生活爱java");
    }
}
